home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / FAN0.M3 < prev    next >
Encoding:
Text File  |  1996-04-01  |  3.9 KB  |  136 lines

  1. name Fanuc 0M
  2.  
  3. % 00
  4. / 00
  5. O 4
  6. N >4
  7. g 2 G
  8. G 2
  9. X ->3.>4
  10. Y ->3.>4
  11. y ->3.>4 Y
  12. z ->3.>4 Z
  13. Z ->3.>4
  14. A ->3.>4
  15. I ->3.>4
  16. J ->3.>4
  17. K ->3.>4
  18. Q ->3.>4
  19. R ->3.>4
  20. P >40
  21. F >3.1
  22. H >2
  23. D >2
  24. T >2
  25. S >4
  26. M >2
  27. m >2 M
  28.  
  29. ModalLetters X Y Z F R                # List of letters that are modal    
  30.  
  31. ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85  # List of g codes that are modal    
  32.  
  33. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  34. First#? N                             # Y or N  'Output 1st sequence no.  
  35. Last#? N                              # Y or N  'Output last sequence no. 
  36.  
  37. HCode X                               # X or X U  'Horizontal char.       
  38. VCode Y                               # Y or Y V  'Vertical char.         
  39. Dcode Z                               # Depth char.                       
  40. FeedCode F                            # Feed rate char.                   
  41.  
  42. Comment ( )                           # Begin End comment char.           
  43.  
  44. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  45. Coolant 8 9 7                         # On, Off & Mist m codes            
  46. DComp 41 42 40                        # Left, Right & Cancel m codes      
  47. LComp 43 49                           # On & Off codes                    
  48.  
  49. Feed G1                             # Linear move                       
  50. Rapid G0                            # Rapid positioning word            
  51. Cw G2                               # Circular move clockwise           
  52. Ccw G3                              # Circular move counter clockwise   
  53.  
  54. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  55.  
  56. CtrCode I J                           # I J or R or I J K L               
  57.  
  58. Spaces? Y                             # Y or N  'Spaces between words     
  59.  
  60. Helical? Y
  61.  
  62. Incremental? N                        # Y or N  'Inc or abs output        
  63. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  64. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  65.  
  66. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  67.  
  68. Drill                                 # Drilling canned/manual cycle      
  69. G81 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  70. end cancel
  71.  
  72. Peck                                  # Pecking canned/manual cycle       
  73. G83 X[H] Y[V] Z[D] Q[VBite] R[Vclear] F[FRate]
  74. end cancel
  75.  
  76. Tap                                   # Tapping canned/manual cycle       
  77. G84 X[H] Y[V] Z[D] R[Vclear] F[FRate] Q[VBite]
  78. end cancel
  79.  
  80. LTap                                  # Left handed tapping cycle         
  81. G74 X[H] Y[V] Z[D] R[Vclear] F[FRate] Q[VBite]
  82. end cancel
  83.  
  84. Ream                                  # Reaming canned/manual cycle       
  85. G85 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  86. end cancel
  87.  
  88. Bore                                  # Boring canned/manual cycle        
  89. G86 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  90. end cancel
  91.  
  92. Back                                  # Back boring canned/manual cycle   
  93. G87 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  94. end cancel
  95.  
  96. Cancel                                # Cancel a canned/manual cycle      
  97. G80
  98. end
  99.  
  100. StartCode                             # Start of the program              
  101. %0
  102. O[Program#]
  103. End
  104.  
  105. 1stToolChange                         # First tool change                 
  106. N[Block] G0 G[work] G90 T[NextTool] S[Speed] M[Direct]
  107. G0 X[H] Y[V] M[Cool]
  108. G43 Z[D] H[Lcomp]
  109. End
  110.  
  111. Infeed                                # Enable cutter comp                
  112. G[Side] X[H] Y[V] D[DComp] F[FRate]
  113. end
  114.  
  115. Outfeed                               # Disable cutter comp               
  116. G1 G40 X[H] Y[V]
  117. end
  118.  
  119. ToolChange                            # Secondary tool changes            
  120. g91 g30 y0
  121. g28 g91 z0 m6
  122. N[Block] G0 G[Work] g91 T[NextTool] S[Speed] M[Direct]
  123. G0 g90 X[H] Y[V] M[Cool]
  124. G43 Z[D] H[Lcomp]
  125. End
  126.  
  127. EndCode                               # End of the program                
  128. g30 g91 y0
  129. g28 g91 z0 m6
  130. g28 g91 X0 Y0
  131. M30
  132. %0
  133. End
  134.  
  135.  
  136.